Instead of exporting a function to query it.
gboolean install_handler);
void _gtk_tree_view_column_autosize (GtkTreeView *tree_view,
GtkTreeViewColumn *column);
-gint _gtk_tree_view_get_header_height (GtkTreeView *tree_view);
void _gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view,
GtkTreeViewRowSeparatorFunc *func,
gint _gtk_tree_view_column_request_width (GtkTreeViewColumn *tree_column);
void _gtk_tree_view_column_allocate (GtkTreeViewColumn *tree_column,
int x_offset,
- int width);
+ int width,
+ int height);
void _gtk_tree_view_column_unset_model (GtkTreeViewColumn *column,
GtkTreeModel *old_model);
void _gtk_tree_view_column_unset_tree_view (GtkTreeViewColumn *column);
column_width += extra_for_last;
if (rtl)
- _gtk_tree_view_column_allocate (column, widget_width - width - column_width, column_width);
+ _gtk_tree_view_column_allocate (column, widget_width - width - column_width, column_width, tree_view->priv->header_height);
else
- _gtk_tree_view_column_allocate (column, width, column_width);
+ _gtk_tree_view_column_allocate (column, width, column_width, tree_view->priv->header_height);
width += column_width;
}
{
if (tree_view->priv->headers_visible)
return tree_view->priv->header_height;
- /* else */
- return 0;
-}
-
-gint
-_gtk_tree_view_get_header_height (GtkTreeView *tree_view)
-{
- return tree_view->priv->header_height;
+ else
+ return 0;
}
void
gtk_tree_view_get_border (GtkScrollable *scrollable,
GtkBorder *border)
{
- border->top = _gtk_tree_view_get_header_height (GTK_TREE_VIEW (scrollable));
+ border->top = gtk_tree_view_get_effective_header_height (GTK_TREE_VIEW (scrollable));
return TRUE;
}
void
_gtk_tree_view_column_allocate (GtkTreeViewColumn *tree_column,
int x_offset,
- int width)
+ int width,
+ int height)
{
GtkTreeViewColumnPrivate *priv;
GtkAllocation allocation = { 0, 0, 0, 0 };
allocation.x = x_offset;
allocation.y = 0;
allocation.width = width;
- allocation.height = _gtk_tree_view_get_header_height (GTK_TREE_VIEW (priv->tree_view));
+ allocation.height = height;
gtk_widget_size_allocate (priv->button, &allocation, -1, &clip);
}